import Vue from 'vue'
import App from './App.vue'
import router from './router/index'

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';

import axios from 'axios'

// 设置请求的根路径
axios.defaults.baseURL = '/api'

// 挂载axios
Vue.prototype.$http = axios


Vue.use(ElementUI)

Vue.config.productionTip = false

const vm = new Vue({
  render: h => h(App),
  router
}).$mount('#app')

console.log(vm)
